﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" 
    xmlns:common="clr-namespace:StoryMaker.Common;assembly=StoryMaker.Common"
    mc:Ignorable="d">
    <Style TargetType="common:ShapeControl" x:Key="StoryEllipse">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="common:ShapeControl">
                    <Grid>
                        <Ellipse Height="{TemplateBinding Height}" Stretch="Fill" Fill="{TemplateBinding FillBrush}" Stroke="{TemplateBinding StrokeBrush}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="common:ShapeControl" x:Key="StoryRectangle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="common:ShapeControl">
                    <Grid>
                        <Rectangle Height="{TemplateBinding Height}"  Fill="{TemplateBinding FillBrush}" Stroke="{TemplateBinding StrokeBrush}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="common:ShapeControl" x:Key="StoryTriangle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="common:ShapeControl">
                    <Grid>
                        <ed:RegularPolygon Height="{TemplateBinding Height}"  InnerRadius="1" PointCount="3" Fill="{TemplateBinding FillBrush}" Stroke="{TemplateBinding StrokeBrush}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="common:ShapeControl" x:Key="StoryStar">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="common:ShapeControl">
                    <Grid>
                        <ed:RegularPolygon Height="{TemplateBinding Height}" InnerRadius="0.47211" PointCount="5" Fill="{TemplateBinding FillBrush}" Stroke="{TemplateBinding StrokeBrush}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="common:ShapeControl" x:Key="StoryPentagon">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="common:ShapeControl">
                    <Grid>
                        <ed:RegularPolygon Height="{TemplateBinding Height}"  InnerRadius="1" PointCount="5" Fill="{TemplateBinding FillBrush}" Stroke="{TemplateBinding StrokeBrush}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>